package com.Ajava1801D.并发包.cyclicreby;

import com.Ajava1801D.并发包.CountDownLunch.TestRun2222;

import java.util.concurrent.CyclicBarrier;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2020/10/7  15:31
 * 描述:
 */
public class TestCyc2222 {

    public static void main(String[] args) {

        CyclicBarrier cyclicBarrier=new CyclicBarrier(3);

        Thread t1=new Thread(new TestCyc(cyclicBarrier,2),"A");
        Thread t2=new Thread(new TestCyc(cyclicBarrier,5),"D");
        Thread t3=new Thread(new TestCyc(cyclicBarrier,3),"E");


        t1.start();
        t2.start();
        t3.start();

        System.out.println("=======================");


    }

}
